import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { UnreadModule } from './unread/unread.module';
import { SharedModule } from 'shared/shared.module';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { NgZorroAntdModule, NZ_I18N, zh_CN } from 'ng-zorro-antd';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { HttpClientModule } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { registerLocaleData } from '@angular/common';
import zh from '@angular/common/locales/zh';
// import { NgSelectModule } from '@ng-select/ng-select';
import { DengluComponent } from './denglu/denglu.component';
import { LoginComponent } from './denglu/login/login.component';
import { NavComponent } from './layout/nav/nav.component';
import { HeaderComponent } from './layout/header/header.component';
import { LayoutComponent } from './layout/layout.component';
import { RouteReuseStrategy } from '@angular/router';

import { AppReuseStrategy } from './app-reuse-strategy';






registerLocaleData(zh);

@NgModule({
  declarations: [
    AppComponent,
    DengluComponent,
    LoginComponent,
    NavComponent,
    HeaderComponent,
    LayoutComponent
  ],
  imports: [
    BrowserModule,
    NgZorroAntdModule,
    FormsModule,
    ReactiveFormsModule,
    // NgSelectModule,
    HttpClientModule,
    BrowserAnimationsModule,
    AppRoutingModule,
    UnreadModule,
    SharedModule
  ],
  providers: [
    { provide: RouteReuseStrategy, useClass: AppReuseStrategy },
    { provide: NZ_I18N, useValue: zh_CN }
  ],
  entryComponents: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
